for ix = 1:length(problem_iter)
    for jx = 1:size(problem_iter(ix).ppl_rects,1)
        bi = 1;
        cur_ppl = problem_iter(ix).ppl_rects(jx,:);
        while bi <= size(problem_iter(ix).bg_rects,1)
            fprintf('ix: %d, bi: %d\n', ix, bi);
            cur_bg = problem_iter(ix).bg_rects(bi, :);
			overlap = rectint(cur_ppl, cur_bg);
            if overlap > 0
                fprintf('Pos rect %d overlaps with bg rect %d\n', ix, bi);
                problem_iter(ix).bg_rects(bi,:) = [];
            else
                bi = bi+1;
            end
        end
    end
end